package com.victor.service;

import java.util.List;

import com.victor.entity.Bybookcoupon;
import com.victor.entity.Mybybookcoupon;

public interface BybookcouponService {

	/**
	 * 查询购书卷
	 * 
	 * @return
	 */
	public List<Bybookcoupon> getBybookcouponList();

	/**
	 * 添加购书卷
	 * 
	 * @param bybookcoupon
	 * @return
	 */
	public int addBybookcoupon(Bybookcoupon bybookcoupon);

	/**
	 * 批量删除
	 * 
	 * @param ids
	 * @return
	 */
	public boolean batchDelete(int[] ids);

	/**
	 * 获取我的购书卷
	 * 
	 * @param userid
	 * @return
	 */
	public List<Mybybookcoupon> getmybybookcoupon(String userid);

	/**
	 * 更新我的购书卷表中购书卷状态
	 * 
	 * @return
	 */
	public void updateBookcoupon();
	/**
	 * 查询八元购书券
	 * @return
	 */
	public Bybookcoupon selBybookcoupon();
	/**
	 * 查询所有购书券
	 * @return
	 */
	public List<Bybookcoupon> selBybookcouponAll();
	
	boolean updBybookcouponById(int id,int number,int newAlready_number);
	
	/**
	 * 根据id 查询我的购书卷
	 * @param couponid
	 * @return
	 */
	public Mybybookcoupon findById(String couponid);
	
	public boolean updateCouponFlag(String couponid, String string);
}
